package com.zyong.design.pattern.memento.case3;

/**
 * @program: zyong-design-pattern
 * @ClassName: Memento
 * @author: zyong
 * @create: 2024-05-12 23:36
 */
public class Memento {
    private String name;
    private int timestamp;

    public Memento(String name, int timestamp) {
        this.name = name;
        this.timestamp = timestamp;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(int timestamp) {
        this.timestamp = timestamp;
    }
}
